import axios from "../api"; // 导入接口配置
// 获取产品名称列表 GetProductNameList 见B1
// 获取产品SN码列表 GetProductSNList 见B1

/**
 * 添加本地邮箱
 * @param params
 * @returns
 */
export const SaveEMailAccount = async (params: any) => {
  return await axios.post("/api/ReportFormManage/SaveEMailAccount", params);
};

/**
 * 发送邮件
 * @param params
 * @returns
 */
export const SendEmail = async (params: any) => {
  return await axios.post("/api/ReportFormManage/SendEmail", params);
};

/**
 * 下载报表
 * @param params
 * @returns
 */
export const DownloadReportForm = async (params: any) => {
  return await axios.post("/api/ReportFormManage/DownloadReportForm", params);
};

/**
 * 查询数据
 * @param params
 * @returns
 */
export const GetMobproductDataEx = async (params: any) => {
  return await axios.post("/api/Test/GetMobproductDataEx", params);
};

/**
 * 查询数据
 * @param params
 * @returns
 */
export const GetMobproductDataOne = async (params: any) => {
  return await axios.post("/api/Test/GetMobproductDataOne", params);
};

/**
 * 获取邮箱类型列表
 * @param params
 * @returns
 */
export const GetEMailType = async (params: any) => {
  return await axios.post("/api/ReportFormManage/GetEMailType", params);
};

/**
 * 根据设备类型获取设备信息
 * @param params
 * @returns
 */
export const GetMobdevicelsBydevicetype = async (params: any) => {
  return await axios.post("/api/Test/GetMobdevicelsBydevicetype", params);
};
